import Vue from 'vue'
Vue.directive('focus', {
  inserted (el) {
    const input = el.querySelector('input')
    if (input) {
      input.focus()
    } else {
      el.focus()
    }
  }
})
